package com.inspur.dgov.bsp.user.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 组织关系
 *
 * @author chiyupei
 * @version 1.0
 * @since 1.0
 */
@Data
@TableName("pub_organ_relation")
@ApiModel(value="PubOrganRelation对象", description="组织关系")
public class PubOrganRelation implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "祖先组织机构ID")
    @TableId("ANCESTOR_ID")
    private Long ancestorId;

    @ApiModelProperty(value = "后代组织机构ID")
    @TableField("DESCENDANT_ID")
    private Long descendantId;

    @ApiModelProperty(value = "组织机构节点间隔")
    @TableField("DISTANCE")
    private Integer distance;


}
